package com.ctgu.computer.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TopicVO {

    @Schema(description = "作者用户名")
    private String senderUserName;

    private Integer textId;

    @Schema(description = "作者id")
    private Integer senderId;
    /** 文章标题 */
    @Schema(description = "文章标题")
    private String header;

    /** 文章具体内容 */
    @Schema(description = "文章具体内容")
    private String content;

    /** 文章所属频道*/
    @Schema(description = "文章所属频道")
    private String channelName;

    /** 点赞数 */
    @Schema(description = "点赞数")
    private Integer goodCount;

    /** 评论数 */
    @Schema(description = "评论数")
    private Integer commentCount;

    @Schema(description = "发帖人身份")
    private Integer identity;

    private LocalDateTime createTime;

    @Schema(description = "帖子封面")
    private String coverImage;

    @Schema(description = "帖子简介")
    private String description;

    @Schema(description = "阅读量")
    private Integer readCount;

    @Schema(description = "当前用户是否对帖子点赞")
    private Boolean isGood;
}
